/*
在组建中使用示例
import { useMappedState, useDispatch } from "redux-react-hook"

function MyComponent() {
  const token = useMappedState(state => state.userTokenModel.token)
  const dispatch = useDispatch()
  console.log('token:', token)
  if (!token) {
    // 方法1
    const saveToken = (data) => ({ type: 'SAVE_TOKEN', data })
    dispatch(saveToken('===JKGABJKSHOLKHDL'))
    // 方法2
    dispatch({ type: 'SAVE_TOKEN', data: 'VVVVVVVVVVVVVV' })
  }
}
*/

import { createStore } from 'redux'
import reducer from './reducers/index'
const store = createStore(reducer)

export default store
